#include "LED.h"

LED::LED(unsigned int channel)
{
	m_digOut = new DigitalOutput(channel);
	
}

LED::~LED(void)
{
	delete m_digOut;
}
	
void
LED::TurnOn(void)
{
	m_digOut->Set(true);
	m_isOn = true;
}

void
LED::TurnOff(void)
{
	m_digOut->Set(false);
	m_isOn = false;
}
bool
LED::IsOn(void)
{
	return m_isOn;
}

